<?php

namespace App;
use Illuminate\Foundation\Auth\User as Authenticable;
class User extends Authenticable {
    protected $fillable = [
        'name','email','password',
    ];

    public function user()
    {
        return $this->belongsTo('User', 'user_id', 'id');
    }
}